<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <form action="<%=path %>/router">
    	<label>测试正常请求数据(有返回对象)：返回值格式为JSON或者XML</label>
    	<input type="hidden" name="method" value="api.user.add"/>
    	<input type="hidden" name="password" value="password123">
    	<input type="hidden" name="userName" value="usernamenick">
    	<input type="hidden" name="appKey" value="00001">
    	<input type="hidden" name="sign" value="fffff">
    	<input name="format" value="JSON">
    	<input type="submit" value="提交">
    </form>
    <form action="<%=path %>/router">
    	<label>测试异常数据：返回值格式为JSON或者XML</label>
    	<input type="hidden" name="method" value="api.user.add"/>
    	<input type="hidden" name="password" value="">
    	<input type="hidden" name="userName" value="usernamenick">
    	<input type="hidden" name="appKey" value="00001">
    	<input type="hidden" name="sign" value="fffff">
    	<input name="format" value="XML">
    	<input type="submit" value="提交">
    </form>
  </body>
</html>
